import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import javax.swing.JButton;
import java.awt.Rectangle;
import javax.swing.JProgressBar;
import javax.swing.JTextField;
import java.awt.Dimension;

public class ProgressDialog extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JButton jButtonCancel = null;
	public JProgressBar getjProgressBarMain() {
		return jProgressBarMain;
	}

	public JTextField getjTextField1() {
		return jTextField1;
	}

	public JTextField getjTextField2() {
		return jTextField2;
	}

	public boolean isCanceled() {
		return canceled;
	}

	public void setjProgressBarMain(JProgressBar jProgressBarMain) {
		this.jProgressBarMain = jProgressBarMain;
	}

	public void setjTextField1(JTextField jTextField1) {
		this.jTextField1 = jTextField1;
	}

	public void setjTextField2(JTextField jTextField2) {
		this.jTextField2 = jTextField2;
	}

	public void setCanceled(boolean canceled) {
		this.canceled = canceled;
	}

	private JProgressBar jProgressBarMain = null;
	private JTextField jTextField1 = null;
	private JTextField jTextField2 = null;
	private boolean canceled = false;
	/**
	 * @param owner
	 */
	public ProgressDialog(Frame owner) {
		super(owner);
		initialize();
		setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(300, 187);
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(getJButtonCancel(), null);
			jContentPane.add(getJProgressBarMain(), null);
			jContentPane.add(getJTextField1(), null);
			jContentPane.add(getJTextField2(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButtonCancel	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonCancel() {
		if (jButtonCancel == null) {
			jButtonCancel = new JButton();
			jButtonCancel.setBounds(new Rectangle(93, 108, 95, 31));
			jButtonCancel.setText("Cancel");
			jButtonCancel.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					canceled=true;
				}
			});
		}
		return jButtonCancel;
	}

	/**
	 * This method initializes jProgressBarMain	
	 * 	
	 * @return javax.swing.JProgressBar	
	 */
	private JProgressBar getJProgressBarMain() {
		if (jProgressBarMain == null) {
			jProgressBarMain = new JProgressBar();
			jProgressBarMain.setBounds(new Rectangle(10, 73, 262, 26));
		}
		return jProgressBarMain;
	}

	/**
	 * This method initializes jTextField1	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField1() {
		if (jTextField1 == null) {
			jTextField1 = new JTextField();
			jTextField1.setBounds(new Rectangle(10, 14, 262, 25));
			jTextField1.setEditable(false);
		}
		return jTextField1;
	}

	/**
	 * This method initializes jTextField2	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField2() {
		if (jTextField2 == null) {
			jTextField2 = new JTextField();
			jTextField2.setBounds(new Rectangle(10, 43, 263, 25));
			jTextField2.setEditable(false);
		}
		return jTextField2;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
